Crate moore_svlog_syntax [] [src]

This crate implements parsing SystemVerilog source files into an abstract syntax tree and resolving the encountered names.

Modules

ast
cat

The categorizing lexer. Tokenizes an input stream of characters, yielding a stream of newline, whitespace, comment, symbol, and text tokens.

lexer

A lexical analyzer for SystemVerilog files, based on IEEE 1800-2009, section 5.

parser

A parser for the SystemVerilog language. Based on IEEE 1800-2009.

preproc

A preprocessor for SystemVerilog files that takes the raw stream of tokens generated by a lexer and performs include and macro resolution.

renumber

This module implements AST node renumbering.

resolve

This module provides name resolution for ASTs. The targeted approach is as follows:

store

This module implements the on-disk AST storage. Items can be serialized to disk and deserialized again ata later point.

token

Defines all tokens that may result from performing lexical analysis on a SystemVerilog source file. This module is inspired heavily by the tokens used in the Rust compiler.